<HTML><HEAD><TITLE>fzn_obj_lookup(+FznState, -Obj)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(flatzinc)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>fzn_obj_lookup(+FznState, -Obj)</H1>
Find ECLiPSe term representing the Mini/FlatZinc model's objective
<DL>
<DT><EM>FznState</EM></DT>
<DD>a FlatZinc state descriptor
</DD>
<DT><EM>Obj</EM></DT>
<DD>Output: ECLiPSe constant or domain variable
</DD>
</DL>
<H2>Description</H2>
<P>
	Assuming a model has previously been loaded successfully
	using fzn_load_xxx or mzn_load_xxx, this primitive returns
	the ECLiPSe term that represents the model's objective.
	This can be used for instance by a branch-and-bound primitive.
    </P>
<H3>Modes and Determinism</H3><UL>
<LI>fzn_obj_lookup(+, -) is semidet
</UL>
<H3>Fail Conditions</H3>
Fails if the model has no objective
<H2>See Also</H2>
<A HREF="../../lib_public/flatzinc/fzn_load_stream-2.html">fzn_load_stream / 2</A>, <A HREF="../../lib_public/flatzinc/fzn_var_lookup-3.html">fzn_var_lookup / 3</A>, <A HREF="../../lib_public/minizinc/index.html">library(minizinc)</A>
</BODY></HTML>
